package autoorder.zsxmlv.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Account {
    private Integer id;

    private String username;

    private String custname;

    private String custpwd;

    private Integer disabled = 0;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCustname() {
        return custname;
    }

    public void setCustname(String custname) {
        this.custname = custname;
    }

    public String getCustpwd() {
        return custpwd;
    }

    public void setCustpwd(String custpwd) {
        this.custpwd = custpwd;
    }

    public Integer getDisabled() {
        return disabled;
    }

    public void setDisabled(Integer disabled) {
        this.disabled = disabled;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Account(Integer id, String username, String custname, String custpwd, Integer disabled, Date createTime, Date updateTime) {
        this.id = id;
        this.username = username;
        this.custname = custname;
        this.custpwd = custpwd;
        this.disabled = disabled;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Account(String username, String custname, String custpwd, Integer disabled, Date createTime, Date updateTime) {
        this.username = username;
        this.custname = custname;
        this.custpwd = custpwd;
        this.disabled = disabled;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Account() {
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", custname='" + custname + '\'' +
                ", custpwd='" + custpwd + '\'' +
                ", disabled=" + disabled +
                ", createtime=" + createTime +
                ", updatetime=" + updateTime +
                '}';
    }
}